Optimal. Leaf size=271 \[ -e e^{-\frac {a}{b n}} r x \left (c x^n\right )^{-1/n} \Gamma \left (2+p,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}-\frac {e e^{-\frac {a}{b n}} r x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right ) \left (a+b \log \left (c x^n\right )\right )^{1+p} \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}}{b n}+e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 271, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {2337, 2212,
2408, 12, 15, 19, 6692} \begin {gather*} x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \text {Gamma}\left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right )-e r x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \text {Gamma}\left (p+2,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right )-\frac {e r x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (a+b \log \left (c x^n\right )\right )^{p+1} \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \text {Gamma}\left (p+1,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right )}{b n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 15
Rule 19
Rule 2212
Rule 2337
Rule 2408
Rule 6692
Rubi steps
\begin {align*} \int \left (a+b \log \left (c x^n\right )\right )^p \left (d+e \log \left (f x^r\right )\right ) \, dx &=e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )-(e r) \int e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \, dx\\ &=e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )-\left (e e^{-\frac {a}{b n}} r\right ) \int \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \, dx\\ &=e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )-\left (e e^{-\frac {a}{b n}} r x \left (c x^n\right )^{-1/n}\right ) \int \frac {\Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}}{x} \, dx\\ &=e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )-\left (e e^{-\frac {a}{b n}} r x \left (c x^n\right )^{-1/n} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}\right ) \int \frac {\Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right )}{x} \, dx\\ &=e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )-\frac {\left (e e^{-\frac {a}{b n}} r x \left (c x^n\right )^{-1/n} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}\right ) \text {Subst}\left (\int \Gamma \left (1+p,-\frac {a+b x}{b n}\right ) \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )+\left (e e^{-\frac {a}{b n}} r x \left (c x^n\right )^{-1/n} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}\right ) \text {Subst}\left (\int \Gamma (1+p,x) \, dx,x,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right )\\ &=-e e^{-\frac {a}{b n}} r x \left (c x^n\right )^{-1/n} \Gamma \left (2+p,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}-e e^{-\frac {a}{b n}} r x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (\frac {a}{b n}+\frac {\log \left (c x^n\right )}{n}\right )+e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 146, normalized size = 0.54 \begin {gather*} -e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \left (a+b \log \left (c x^n\right )\right )^{-1+p} \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{1-p} \left (-b e n r \Gamma \left (2+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right )+\Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (b d n-a e r-b e r \log \left (c x^n\right )+b e n \log \left (f x^r\right )\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \left (a +b \ln \left (c \,x^{n}\right )\right )^{p} \left (d +e \ln \left (f \,x^{r}\right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.09, size = 134, normalized size = 0.49 \begin {gather*} -\frac {{\left (b r e \log \left (c\right ) - b n e \log \left (f\right ) - b d n + {\left (b n p + b n + a\right )} r e\right )} e^{\left (-\frac {b n p \log \left (-\frac {1}{b n}\right ) + b \log \left (c\right ) + a}{b n}\right )} \Gamma \left (p + 1, -\frac {b n \log \left (x\right ) + b \log \left (c\right ) + a}{b n}\right ) - {\left (b n r x e \log \left (x\right ) + b r x e \log \left (c\right ) + a r x e\right )} {\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{p}}{b n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \log {\left (c x^{n} \right )}\right )^{p} \left (d + e \log {\left (f x^{r} \right )}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \left (d+e\,\ln \left (f\,x^r\right )\right )\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^p \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________